<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<style>

#cdiTable thead tr td{
	font-size: 16px;
	border-color: blue;
	background-color: yellow;
	padding:4px;
	color: blue;	
}

#sumTr td{
	color: black;	
}
</style>


<c:if test="${not empty post}">

<table border="1" id="cdiTable" class="tablesorter"  style="width: 2400px;">

	<thead>
	<tr>
		<td>序號</td>
		<td>呈送</td>	
		<td>流程狀態</td>	
		<td>開單日期</td>	
		<td>完成初步回覆日期</td>	
		<td>完成最終回覆日期</td>	
		<td>客訴編號</td>	
		<td>業務人員</td>
		<td>客戶名稱</td>	
		<td>產品類別</td>	
		<td> 產品品號(新)	</td>
		<td> 產品品號(舊)	</td>
		<td>異常現象		</td>
		<td>生產地		</td>
		<td>案件判定		</td>
		<td>權責單位		</td>
		<td>判定日		</td>
		<td>查看工作		</td>
		<td>客戶品質抱怨處理回覆單		</td>
		<td>矯正預防措施單		</td>
	</tr>
	</thead>
	
	<tbody>
	
		<c:if test="${empty cdiList}">
			<tr>
     			<td colspan="13" >查無客訴資料</td>
     		</tr>
		</c:if>
	
		<c:forEach var="cdi" items="${cdiList}" varStatus="status" >
			<tr>
     			<td>${status.index+1 }</td>
     			<td>link</td>
     			<td>${cdi.nowStep}</td>
     			<td>${cdi.startDate}</td>
     			<td>${cdi.surveyDate5}</td>
     			<td>${cdi.finishForeverDate8}</td>
     			<td>${cdi.CDIID}</td>
     			<td>${cdi.salesID}</td>     			
     			<td>${customerName[cdi.custID]}</td>
     			<td>${productTypeMap[cdi.productType]}</td>
     			<td>${cdi.newProduct}</td>
     			<td>${cdi.oldProduct}</td>
     			<td>${unusualTypeMap[cdi.unusualType]}</td>
     			<td>${madeinMap[cdi.madeIn]}</td>
     			<td>${cdi.determine}</td>
     			<td>${orgName[cdi.dutyName]}</td>
     			<td>${cdi.finishDetetmineDate6}</td>
     			<td><a target="_blank" href="http://127.0.0.1/EEPWebClient/MIRDC/CDI_ALL_TODO.aspx?CDIID=${cdi.CDIID}">連結</a></td>
     			<td><a target="_blank" href="http://127.0.0.1/EEPWebClient/MIRDC/WCDI_Excel1.aspx?CDIID=${cdi.CDIID}">連結</a></td>
     			<td><a target="_blank" href="http://127.0.0.1/EEPWebClient/MIRDC/WCDI_Excel2.aspx?CDIID=${cdi.CDIID}">連結</a></td>
     			
     			
     		</tr>	
		</c:forEach>
	
	
	
	</tbody>
</table>
</c:if>


<script>
$(function() {
	//$("#cdiTable").tablesorter({
	//	widgets: ['zebra']
//	}); 
})

</script>
